FROM python:3.7.7
WORKDIR /opt
ADD ./asserts ./asserts
ADD ./init_data ./init_data
ADD ./alembic ./alembic
ADD ./alembic.ini ./alembic.ini
ADD ./Makefile ./Makefile
ADD ./public ./public
ADD ./server ./server
ADD ./templates ./templates
ADD ./initial_data.py .
ADD ./job_scan_task.py .
ADD ./LICENSE .
ADD ./main.py .
ADD ./requirements.txt .
ADD ./start-server.sh .
ADD ./start-worker.sh .
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r ./requirements.txt